var express = require('express')
var router = express.Router()
let multer = require('multer');
let upload = multer({
    dest: './public/uploads/'
});
var uploadfunc = require('../Controllers/upload')

router.post('/singlefile', upload.single('file'), uploadfunc.uploadSinglefile)
router.post('/morefile', upload.array('file', 10), uploadfunc.uploadMultiFile)
module.exports = router